﻿using GatewayClient.Device;
using GatewayClient.MQ;
using Iot.Device.Pn532;
using IotDeviceToolHepler;

using IotDeviceToolHepler.Model.Device;
using Models.Common;
using Models.Device;

using Newtonsoft.Json;

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Threading;
using UtilsBase;
using static Models.Common.EnumDeviceState;

namespace GatewayClient.Models
{

    public class ModelSystemTime
    {

        /// <summary>
        /// 获取主机下发的最新时间
        /// </summary>
        public static DateTime systemTime { get; set; }

        /// <summary>
        /// 系统默认时间，可以用判断有没下发过时间
        /// </summary>
        public static DateTime defaultSystemTime = DateTime.Parse("2000-01-01 00:00:00");
        /// <summary>
        /// 用于重启网络用
        /// </summary>
        public static DateTime systemTime_restartliveTime = DateTime.Now;
        /// <summary>
        /// 用于重启mq
        /// </summary>
        public static DateTime systemTime_payliveTime = DateTime.Now;
    }
}
